StepSettings

data class StepSettings<TContext>(val model: LanguageModel? = null, val activeTools: List<String>? = null, val toolChoice: ToolChoice? = null, val messages: List<ModelMessage>? = null, val system: String? = null, val providerOptions: Map<String, JsonElement>? = null, val temperature: Float? = null, val topP: Float? = null, val topK: Int? = null, val maxOutputTokens: Int? = null, val stopSequences: List<String>? = null, val seed: Int? = null, val presencePenalty: Float? = null, val frequencyPenalty: Float? = null, val responseFormat: ResponseFormat? = null, val experimental_context: TContext? = null)

Returned from prepareStep. Any non-null field overrides the agent default / prepareCall value for this step only.

Sampler params here override the per-invocation values from AgentSettings for one step — same vocabulary as v6's tool-loop-agent-settings.ts's prepareStep return. Useful when (say) step 1 is a deterministic plan (temperature = 0) and the following synthesis steps are warmer.

Constructors

Link copied to clipboard
constructor(model: LanguageModel? = null, activeTools: List<String>? = null, toolChoice: ToolChoice? = null, messages: List<ModelMessage>? = null, system: String? = null, providerOptions: Map<String, JsonElement>? = null, temperature: Float? = null, topP: Float? = null, topK: Int? = null, maxOutputTokens: Int? = null, stopSequences: List<String>? = null, seed: Int? = null, presencePenalty: Float? = null, frequencyPenalty: Float? = null, responseFormat: ResponseFormat? = null, experimental_context: TContext? = null)

Properties

Link copied to clipboard
Link copied to clipboard

Per-step typed-context override. Mirrors v6's prepareStep.experimental_context (per historical parity gap #16). When set, subsequent steps see this value as their ToolExecutionContext.context — useful for mid-loop context evolution (e.g., RAG augmentation after a tool result).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val providerOptions: Map<String, JsonElement>?
Link copied to clipboard
Link copied to clipboard
val seed: Int?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val topK: Int?
Link copied to clipboard
val topP: Float?